package models

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(100)"`
}
type Role struct {
	gorm.Model
	RoleName string `gorm:"type:varchar(50)"`
}
type UserRole struct {
	gorm.Model
	Uid int `gorm:"type:int"`
	Rid int `gorm:"type:int"`
}
type Node struct {
	gorm.Model
	NodeName string `gorm:"type:varchar(30)"`
}
type RoleNode struct {
	gorm.Model
	Rid int `gorm:"type:int"`
	Nid int `gorm:"type:int"`
}
type Shop struct {
	gorm.Model
	ShopName   string `gorm:"type:varchar(30)"` //商品名称
	ShopType   string `gorm:"type:varchar(30)"` //商品分类
	ShopPrice  string `gorm:"type:varchar(30)"` //商品价格
	ShopStatus string `gorm:"type:varchar(30)"` //商品库存
}
type ShopOrder struct {
	gorm.Model
	OrderNo    string `gorm:"type:varchar(50)"` //订单编号
	OrderPrice string `gorm:"type:varchar(50)"` //订单价格
	OrderNum   string `gorm:"type:varchar(50)"` //订单数量
}
type ShopOrderList struct {
	OrderId    int    `gorm:"type:int"`
	ShopName   string `gorm:"type:varchar(30)"` //商品名称
	ShopType   string `gorm:"type:varchar(30)"` //商品分类
	ShopPrice  int    `gorm:"type:int"`         //商品价格
	ShopStatus int    `gorm:"type:int"`         //商品库存
	OrderPrice int    `gorm:"type:int"`         //订单价格
	OrderNum   int    `gorm:"type:int"`         //订单数量
}
